{extend name="default/base/base_seller" /}
{block name="seller_main"}
   
<div class="page">
 

    <table class="dssc-default-table">
        <thead>
            <tr>
                <th>{$Think.lang.ds_sort}</th>
                <th>公告标题</th>
                <th>操作人</th>
                <th>更新时间</th>
                <th>状态</th>
                <th>{$Think.lang.ds_handle}</th>
            </tr>
        </thead>
        <tbody>

            
        {notempty name="list"}
        {foreach $list as $key=>$item }
        <p>
         
        </p> 
        <tr  id="ds_row_{$item.affiche_id}">
            <td>{$item.affiche_id}</td>
            <td>{$item.title}</td>
            <td>{$item.admin_name|default=''}</td>
            <td>{$item.updated_at|substr=0,16}</td> 
            <td>
                <?php 
                if(empty($item['memberid'][0]['member_id'])){echo '未读';}else{
                    echo '已读';
            } ?>
        </td>
            <td class="dscs-table-handle" style="height: 68px;width: 221px;">
                <span> <a href="javascript:dsLayerOpen('{:url('Sellernews/detail',['id'=>$item.affiche_id])}','查看','700px','500px')" class="btn-green"><i class="iconfont">&#xe70b;</i><p>详情</p></a></span>
             
              </td>
        </tr>
        {/foreach}
        {else /}
        <tr class="no_data">
            <td colspan="10">{$Think.lang.ds_no_record}</td>
        </tr>
        {/notempty}
        </tbody>
    </table>
    {$show_page}

</div> 

<script src="{$Think.HOME_SITE_ROOT}/js/store_goods_list.js"></script>

<script>
          function dsLayerOpen(url, title,width,height) {
            if (!width) width = '900px';
            if (!height) height = '500px';
            layer.open({
                type: 2,
                title: title,
                area: [width,height],
                fixed: false, //不固定
                maxmin: true,
                content: url
            });
        }

</script>

{/block}
